<%--
  Created by IntelliJ IDEA.
  User: Mi
  Date: 2021/9/25
  Time: 10:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>招聘者-查看职位</title>
    <link rel="icon" href="/hire/imgs/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/hire/css/employer/recruitment/view_recruitment.css">
</head>
<body style="background: #fafafa">
<%@include file="../employer_nav.jsp" %>

<div class="mypost">
    <div class="layui-container">
        <div class="layui-row">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>我发布的职位</legend>
            </fieldset>
            <div class="layui-bg-gray" style="padding-left: 30px;">
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header">我的发布
                                <input type="text" value="${recruitment.id}" style="display: none" id="recruitment">
                                <div class="operate">
                                    <a href="javascript:updateRecruitment()">修改</a>
                                    <a href="javascript:refreshRecruitment()">刷新</a>
                                </div>
                            </div>
                            <div class="layui-card-body">
                                <div class="info">
                                    <div class="name">
                                        <label class="layui-form-label">职位名称:</label>
                                        <label class="layui-form-label value">${recruitment.name}</label>
                                    </div>
                                    <div class="salary">
                                        <label class="layui-form-label">薪资范围:</label>
                                        <label class="layui-form-label value">${recruitment.salaryLower}k-${recruitment.salaryUpper}k</label>
                                    </div>
                                    <c:if test="${!empty recruitment.experience}">
                                        <div class="experience">
                                            <label class="layui-form-label">经验要求:</label>
                                            <label class="layui-form-label value">${recruitment.experience}</label>
                                        </div>
                                    </c:if>
                                    <c:if test="${!empty recruitment.education}">
                                        <div class="education">
                                            <label class="layui-form-label">学历要求:</label>
                                            <label class="layui-form-label value">${recruitment.education}</label>
                                        </div>
                                    </c:if>
                                    <c:if test="${!empty recruitment.duty}">
                                        <div class="duty">
                                            <label class="layui-form-label">岗位职责:</label>
                                            <label class="layui-form-label value">${recruitment.duty}</label>
                                        </div>
                                    </c:if>
                                    <c:if test="${!empty recruitment.requirement}">
                                        <div class="requirement">
                                            <label class="layui-form-label">职位要求:</label>
                                            <label class="layui-form-label value">${recruitment.requirement}</label>
                                        </div>
                                    </c:if>
                                    <c:if test="${!empty recruitment.welfare}">
                                        <div class="welfare">
                                            <label class="layui-form-label">职位福利:</label>
                                            <label class="layui-form-label value">${recruitment.welfare}</label>
                                        </div>
                                    </c:if>
                                    <c:if test="${!empty tagList}">
                                        <div class="label-tag">
                                            <label class="layui-form-label">标签:</label>
                                            <label class="layui-form-label value">
                                                <c:forEach items="${tagList}" var="tag">
                                                    ${tag.details}&nbsp;&nbsp;&nbsp;&nbsp;
                                                </c:forEach>
                                            </label>
                                        </div>
                                    </c:if>
                                    <div class="contact-name">
                                        <label class="layui-form-label">联系人:</label>
                                        <label class="layui-form-label value">${recruitment.contactName}</label>
                                    </div>
                                    <div class="contact-phone">
                                        <label class="layui-form-label">联系电话:</label>
                                        <label class="layui-form-label value">${recruitment.contactPhone}</label>
                                    </div>
                                    <div class="contact-email">
                                        <label class="layui-form-label">联系邮箱:</label>
                                        <label class="layui-form-label value">${recruitment.email}</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<script src="/hire/js/employer/recruitment/view_recruitment.js"></script>
</body>
</html>
